package com.xjj.serviceattend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjj.entity.Attend;
import com.xjj.entity.PageBean;
import com.xjj.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: AYang
 * @Date: 2022/10/20 10:50
 * @Description:
 */
public interface AttendService extends IService<Attend>{
    PageBean<Attend> getByPage(Attend attend, Integer pageNum, Integer pageSize);

    List<Student> getStuByKid(@Param("klassId") Integer klassId);

    void updateAttendStatusBySid(@Param("sid")Integer sid,@Param("attendStatus")String attendStatus);

    void updateAttendStatusByKlassId(@Param("klassId")Integer klassId,@Param("attendStatus")String attendStatus);

    String getDateByDate(String date);

    void addRecord(Attend attend);

    void updateByCondition(Attend attend);

    Integer getAttendStatusNum(@Param("attendStatus")String attendStatus,@Param("klassId") Integer klassId);
}
